package com.optimatch.ui.view.customComponents.pages;

import java.awt.Label;

import javax.swing.BoxLayout;
import javax.swing.JPanel;

public class SearchInfoPanel extends JPanel {

	private Label nbBacktracks;
	private Label tempsRecherche;
	private Label nbBreaks;
	
	public SearchInfoPanel() {
		super();
		init();
	}

	private void init() {
		this.setLayout(new BoxLayout(this,BoxLayout.Y_AXIS));
		nbBacktracks = new Label("Nombre backtracks :");
		tempsRecherche = new Label("Temps recherche :");
		nbBreaks = new Label("Nombre de breaks : ");
		this.add(nbBacktracks);
		this.add(tempsRecherche);
		this.add(nbBreaks);
	}
	public void setNbBacktracks(int backTracks){
		nbBacktracks.setText("Nombre backtracks : "+ backTracks);
	}
	public void setTempsRecherche(double temps){
		tempsRecherche.setText("Temps recherche : "+ temps+" ms");
	}
	public void setNbBreaks(int breaks){
		nbBreaks.setText("Nombre de breaks : "+ breaks);
	}
	
	

}
